Skip to content

Comments

Remove deprecated trim package dependency#2712

Closed
FenPWysocki wants to merge 5 commits intoauth0:masterfrom
FenPWysocki:master
Closed

Remove deprecated trim package dependency#2712
FenPWysocki wants to merge 5 commits intoauth0:masterfrom
FenPWysocki:master

Conversation

@FenPWysocki
Copy link

Changes

Removes the deprecated trim@1.0.1 npm package and replaces all usages with the native String.prototype.trim() method.

  • Removed trim from dependencies in package.json
  • Replaced all trim() function calls with .trim() method across source files:
    • src/field/index.js
    • src/field/username.js
    • src/field/mfa_code.js
    • src/field/email.js
    • src/core/index.js
    • src/connection/database/index.js
    • src/avatar/gravatar_provider.js

References

Resolves npm deprecation warning: npm warn deprecated trim@1.0.1: Use String.prototype.trim() instead

Testing

  • All existing tests pass
  • No breaking changes - functionality remains identical as String.prototype.trim() is a native, widely-supported browser API

Checklist

@FenPWysocki FenPWysocki requested a review from a team as a code owner January 12, 2026 07:58
@codecov
Copy link

codecov bot commented Jan 28, 2026

Codecov Report

❌ Patch coverage is 72.72727% with 3 lines in your changes missing coverage. Please review.
✅ Project coverage is 43.52%. Comparing base (e89a37d) to head (75f5adc).
⚠️ Report is 68 commits behind head on master.

Files with missing lines Patch % Lines
src/avatar/gravatar_provider.js 0.00% 2 Missing ⚠️
src/field/mfa_code.js 0.00% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           master    #2712      +/-   ##
==========================================
+ Coverage   42.54%   43.52%   +0.97%     
==========================================
  Files         120      120              
  Lines        3145     3180      +35     
  Branches      337      339       +2     
==========================================
+ Hits         1338     1384      +46     
+ Misses       1713     1701      -12     
- Partials       94       95       +1     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@ankita10119 ankita10119 enabled auto-merge (squash) January 28, 2026 13:16
@ankita10119 ankita10119 disabled auto-merge February 3, 2026 05:37
@ankita10119
Copy link
Contributor

@FenPWysocki , I have reviewed these changes and it looks good to me.
Could you please verify all your commits, so that we can merge this PR?

@FenPWysocki
Copy link
Author

Hi, @ankita10119 , I don't know how to do it. Can you help? Usually auth0 team automatically merged my Pull Request themselves.

@frederikprijck
Copy link
Member

frederikprijck commented Feb 3, 2026

@FenPWysocki , you can read on commit signing here, and learn why it could be useful to configure and how to do so.

@FenPWysocki FenPWysocki closed this Feb 3, 2026
@FenPWysocki
Copy link
Author

Hi! Thanks for the guidance. I’m not very familiar with commit signing / GPG/SSH verification, and this is a bit too complex for me at the moment.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants